#!/usr/bin/python
#Filename: funcpara.py

def powersum(power, *args):
    total = 0;
    for i in args:
        total += pow(i, power)
    return total

sum = powersum(1, 3, 4)
print sum
